const db = require('../../../libs/db.config');

module.exports = async (data) => {
    const userID = data;
    const searchSQL = 'SELECT * FROM forum WHERE userID = ?';
    return await db.query(searchSQL, [userID]);
};
